package com.tiger.cloud.model.crm;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;

import com.tiger.cloud.common.mybatis.TigerBaseEntity;
import com.tiger.cloud.enums.DeleteEnum;
import com.tiger.cloud.enums.UserResourceEnum;
import com.tiger.cloud.enums.UserStatusEnum;
/**
 * 
 * crm_user-用户管理
 *
 */
public class User extends TigerBaseEntity{

	private static final long serialVersionUID = 1L;
    
	/**
	 * 登录账号  手机号
	 */
    private String loginId;
	/**
	 * 用户姓名
	 */
    private String userName;
	/**
	 * 密码
	 */
    private String password;
	/**
	 * 用户来源 0:注册、1:分享、2:展会等渠道
	 */
    private UserResourceEnum resource;
	/**
	 * 分享码
	 */
    private String shareCode;
	/**
	 * 企业信息
	 */
    private String companyInfo;
	/**
	 * 
	 */
    private String attachmentCompany;
	/**
	 * 是否删除, 0:正常,1:删除
	 */
    private DeleteEnum isDelete;
	/**
	 * 用户状态  0:待审核、1:正常、2:冻结
	 */
    private UserStatusEnum status;
	/**
	 * 附件  名片
	 */
    private String attachment;
	/**
	 * 创建时间
	 */
    private Date createTime;
	/**
	 * 
	 */
    private Date lastUpdateTime;
    
    public User(){
    
    }
    
    public String getLoginId() {
        return this.loginId;
    }
    
    public void setLoginId(String loginId) {
        this.loginId = loginId;
    }
    public String getUserName() {
        return this.userName;
    }
    
    public void setUserName(String userName) {
        this.userName = userName;
    }
    public String getPassword() {
        return this.password;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }
    public UserResourceEnum getResource() {
        return this.resource;
    }
    
    public void setResource(UserResourceEnum resource) {
        this.resource = resource;
    }
    public String getShareCode() {
        return this.shareCode;
    }
    
    public void setShareCode(String shareCode) {
        this.shareCode = shareCode;
    }
    public String getCompanyInfo() {
        return this.companyInfo;
    }
    
    public void setCompanyInfo(String companyInfo) {
        this.companyInfo = companyInfo;
    }
    public String getAttachmentCompany() {
        return this.attachmentCompany;
    }
    
    public void setAttachmentCompany(String attachmentCompany) {
        this.attachmentCompany = attachmentCompany;
    }
    public DeleteEnum getIsDelete() {
        return this.isDelete;
    }
    
    public void setIsDelete(DeleteEnum isDelete) {
        this.isDelete = isDelete;
    }
    public UserStatusEnum getStatus() {
        return this.status;
    }
    
    public void setStatus(UserStatusEnum status) {
        this.status = status;
    }
    public String getAttachment() {
        return this.attachment;
    }
    
    public void setAttachment(String attachment) {
        this.attachment = attachment;
    }
    public Date getCreateTime() {
        return this.createTime;
    }
    
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public Date getLastUpdateTime() {
        return this.lastUpdateTime;
    }
    
    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }
    
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}